package com.atguigu.dao;

import com.atguigu.pojo.TravelGroup;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TravelGroupDao {

    void add(TravelGroup travelGroup);

    void setTravelGroupAndTravelItem(Map<String, Integer> map);


    Page findPage(@Param("value") String queryString);


    TravelGroup get(Integer id);

    List<Integer> getTravelItemIdByTravelGroupId(Integer travelGroupId);

    void edit(TravelGroup travelGroup);

    void deleteByTravelGroupId(Integer id);

    void delete(Integer id);

  int findTravelGroupById(Integer id);

    List<TravelGroup> findAll();

    //定义一个帮忙的方法:根据套餐id查询套餐关联的跟团游
    List<TravelGroup>findTravelGroupsById(Integer id);
}
